package com.rfid.config;

import android.os.Environment;

import java.io.File;

public class Constant {

    public static final String EXPORT_DIR = "/sdcard";

    public static final int BOOK_LAB_LEN = 12;

    public static final int SHELF_LAB_LEN = 8;

    public static final String CONFIG_PATH = "/sdcard/config.txt";

    public static final String BASE_URL = "http://192.168.0.210:8080/";

    public static final String FILE_DIR = "/sdcard/pandian/";

    public static final String DB_PATH = "/sdcard/rfid.db";

    public static void init() {
        File file = new File(FILE_DIR);
        if (!file.exists()) {
            file.mkdirs();
        }
        if(file.isFile()) {
            file.delete();
            file.mkdirs();
        }
    }
}
